<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 私域用户ID
 * @property int $main_uid 主账号ID
 * @property string $corp_id 企业微信ID
 * @property string $corp_name 企业名称简写
 * @property string $corp_full_name 企业名称
 * @property string $corp_log 企业logo
 * @property int $verify_type 认证类型0=未认证
 * @property string $corp_admin_id 企业法人ID
 * @property string $corp_owner_name 企业法人名称
 * @property int $corp_create_time 
 * @property string $remark 备注信息
 * @property int $type 类型：0=企微号 1=客户
 * @property string $auth_corp_id 授权企业的ID
 * @property int $auth_status 授权状态：0=待授权 1=已授权
 * @property string $auth_admin_id 服务商端管理员ID
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class ChCorp extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_corp';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'corp_id', 'corp_name', 'corp_full_name', 'corp_log', 'verify_type', 'corp_admin_id', 'corp_owner_name', 'corp_create_time', 'remark', 'type', 'auth_corp_id', 'auth_status', 'auth_admin_id', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'verify_type' => 'integer', 'corp_create_time' => 'integer', 'type' => 'integer', 'auth_status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
